import request from '@/service/service'

// 查询表单组
export function getProcessComunes (param) {
  return request({
    url: 'wflow/sys/getProcessComunes',
    method: 'get',
    params: param
  })
}

// 发布内容阅读获取数据
export function readingLi (uuid) {
  return request({
    url: 'wflow/sys/homePageByUuid/' + uuid,
    method: 'get'
    // params: uuid,
  })
}

// 发布内容阅读发布评论
export function reviewAdd (params) {
  return request({
    url: 'wflow/sys/homePageRecord',
    method: 'post',
    data: params
  })
}

// 获取上传的图片
export function getFileList (uuid) {
  return request({
    url: 'wflow/sysFile?bizId=' + uuid,
    method: 'get'
  })
}

export function getFileList2 (uuid, type) {
  return request({
    url: 'wflow/sysFile?bizId=' + uuid + '&bizType=' + type,
    method: 'get'
  })
}
// 获取上传的图片
export function deleteFile (params) {
  return request({
    url: 'wflow/oss/oss-simple-delete',
    method: 'post',
    data: params
  })
}

// 首页获取列表数据
export function homePageDataList (params) {
  return request({
    url: 'wflow/sys/homePageData',
    method: 'get'
    // data: params,
  })
}
export default {
  getProcessComunes,
  readingLi,
  reviewAdd,
  getFileList,
  getFileList2,
  deleteFile,
  homePageDataList
}
